<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增污水类型')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-sewageType-add">
          <input name="dictType"  type="hidden" th:value="${dictType}" />
          <input name="listClass"  type="hidden" th:value="default" />
          <input name="isDefault"  type="hidden" th:value="N" />
          <input name="status"  type="hidden" th:value="0" />
          <div class="form-group">
            <label class="col-sm-3 control-label "><span style="color: red; ">*</span>污水类型名称：</label>
            <div class="col-sm-8">
              <input class="form-control" type="text" name="dictLabel" id="dictLabel" required>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-3 control-label "><span style="color: red; ">*</span>污水类型标识：</label>
            <div class="col-sm-8">
              <input class="form-control" type="text" name="dictValue" id="dictValue" required>
              <span class="help-block m-b-none"><i class="fa fa-info-circle"></i>此值由开发人员定义，添加后不可修改</span>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-3 control-label"><span style="color: red; ">*</span>排序：</label>
            <div class="col-sm-8">
              <input class="form-control" type="text" name="dictSort" required>
            </div>
          </div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "sewage/sewageType"
		$("#form-sewageType-add").validate({
			rules:{
        dictSort:{
          digits:true
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-sewageType-add').serialize());
	        }
	    }
	</script>
</body>
</html>
